package com.example.cons.service;

import com.example.dao.UserDAO;
import com.example.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author:ChenSheng
 * @Description:
 * @Date: Created in 下午 17:04 2018/6/11 0011
 */
@Service
public class UserService {

    @Autowired
    UserDAO userDAO;

    public User index(){
        return userDAO.findOne();
    }

}
